|
![](/i/fill.gif) |
error: no matching } in sphere_sweep, < found instead
/////
#declare Rand01 = seed(34747);
#macro Tree_Root(X,Y,Z,R,L,Next)
#declare counter=0;
sphere_sweep {
linear_sphere_sweep,
10,
#while(Next>0)
<X,Y,Z>,R
#declare R=R/1.05;
#local X=X-rand(Rand01)*2;
#local Y=Y-rand(Rand01);
#local Z=Z-rand(Rand01)*2;
#declare Next=Next-.1;
#declare counter=counter+1;
#end
}
#end
union{
Tree_Root(0,0,0,2,1,1)
pigment{color rgb <1,0,0>}}
//////
-Chris-
David Fontaine <dav### [at] faricy net> wrote in message
news:39372DF5.AAB80A80@faricy.net...
> "Chris S." wrote:
>
> > I have a while loop which runs through numbers calculating a coordinate
and
> > radius of a sphere. What I'm trying to do is have these coordinates and
> > radii be entered into a sphere_sweep in order to serve as its sphere
list.
> > I tried placing the while loop in the sphere_sweep code but received an
> > error message. Is there any way to do this with an array? I'm
> > inexperienced with arrays so any help would be appreciated.
> >
> > Thanks, I only try bothering the group as a last resort:)
>
> Hmm, that should work... What's the message? and check your syntax :-)
>
> --
> David Fontaine <dav### [at] faricy net> ICQ 55354965
> Please visit my website: http://www.faricy.net/~davidf/
>
>
Post a reply to this message
|
![](/i/fill.gif) |